package com.sf.asp.core.exception;

import com.sf.asp.constants.enumeration.ResponseStatusEnum;

/**
 * Asp项目异常
 */
public class AspException extends RuntimeException {


    private Integer code;

    public AspException(String msg){
        super(msg);
        this.code = ResponseStatusEnum.INTERNAL_ERROR.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
